<%inherit file="/base/index.html" />
<%namespace file="/base/markup.html" name="markup" import="*"/>


<%def name="heading()">
    <h1 class="heading">
     Settings for ${c.researcher.firstName} ${c.researcher.lastName}
    </h1>
</%def>

<p>This page lists the settings specific to user ${c.researcher.firstName} \
${c.researcher.lastName}</p>

% if ('user_username' in session and session['user_username'] == \
    c.researcher.username) or ('user_role' in session and session['user_role'] \
    == 'administrator'):
<a href="${url(controller='researcher', action='editsettings', \
   id=c.researcher.id)}" class="buttonLink" title="Edit \
   ${c.researcher.firstName} ${c.researcher.lastName}'s settings">edit</a>
% endif

<table class="infoTable">

 <tr>
  <td>
   Default Collection View
   <p class='explanation'>How the content of Collections should be displayed
   for ${c.researcher.firstName} ${c.researcher.lastName}</p>
  </td>
  <td>
   ${c.researcher.collectionViewType}
  </td>
 </tr>

 <tr>
  <td>
   Input Orthography
   <p class='explanation'>The orthography that ${c.researcher.firstName} \
   ${c.researcher.lastName} will use to enter and search for object \
   language data.  Note: if unspecified, system's default input orthography \
   will be used.</p>
  </td>
  <td>
   % if c.researcher.inputOrthography:
   ${app_globals.OLOrthographies[c.researcher.inputOrthography][0]}
   % else:
   unspecified (system default is ${app_globals.defaultInputOrthography[0]})
   % endif
  </td>
 </tr>

 <tr>
  <td>
   Output Orthography
   <p class='explanation'>The orthography that will be used to display object \
   language data to ${c.researcher.firstName} ${c.researcher.lastName}.  Note: \
   if unspecified, the system's default output orthography will be used.</p>
   </p>
  </td>
  <td>
   % if c.researcher.outputOrthography:
   ${app_globals.OLOrthographies[c.researcher.outputOrthography][0]}
   % else:
   unspecified (system default is ${app_globals.defaultOutputOrthography[0]})
   % endif
  </td>
 </tr>

</table>

% if ('user_username' in session and session['user_username'] == \
    c.researcher.username) or ('user_role' in session and session['user_role'] \
    == 'administrator'):
<a href="${url(controller='researcher', action='editsettings', \
   id=c.researcher.id)}" class="buttonLink" title="Edit \
   ${c.researcher.firstName} ${c.researcher.lastName}'s settings">edit</a>
% endif